package com.cw.base.jeeyc.application;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Configuration;

//import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;


@Configuration
@EnableDiscoveryClient
@MapperScan("com.cw.**.dal.dao.mapper.**")
//@EnableApolloConfig
public class JeeycConfiguration {
    // @Bean
    // public RedissonClient redissonSingle() {
    //     Config config = new Config();
    //     SingleServerConfig serverConfig = config.useSingleServer()
    //         .setAddress("redis://47.104.152.97:6379")
    //         .setClientName("Single")
    //         .setConnectionMinimumIdleSize(0)
    //         .setConnectTimeout(5000)
    //         .setDatabase(0);
    //     serverConfig.setPassword("123qwe@qq");
    //     return Redisson.create(config);
    // }
}
